package com.sbsj.constants;

public enum CommonConstant {
    OK("OK","redis-OK"),
    EXRP_MINUTE(60,"redis过期时间，以秒为单位，一分钟"),
    EXRP_HOUR(60 * 60,"redis过期时间，以秒为单位，一小时"),
    EXRP_DAY(60 * 60 * 24,"redis过期时间，以秒为单位，一天"),
    PREFIX_SHIRO_CACHE("shiro:cache:","redis-key-前缀-shiro:cache"),
    PREFIX_SHIRO_ACCESS_TOKEN("shiro:access_token:","redis-key-前缀-shiro:access_token"),
    PREFIX_SHIRO_REFRESH_TOKEN("shiro:refresh_token:","redis-key-前缀-shiro:refresh_token"),
    ACCOUNT("account","JWT-account"),
    CURRENT_TIME_MILLIS("currentTimeMillis","JWT-currentTimeMillis"),
    PASSWORD_MAX_LEN(8,"PASSWORD_MAX_LEN");

    private Object value;
    private String desc;

    CommonConstant(Object value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
